from cyaron import *

name = "candy"

for i in range(1, 11):
    test_data = IO(file_prefix=name, data_id=i)
    if i < 4:
        maxn = 5
        maxr = 10
        maxc = 10
    elif i < 8:
        maxn = 1e5
        maxr = 1e9
        maxc = 1e5
    else:
        maxn = 1e9
        maxr = 1e9
        maxc = 1e9


    n = randint(2, maxn)
    r = randint(n, maxr)
    c = randint(0, maxc)
    l = randint(max(n, r-c), r)
    test_data.input_writeln(n, l, r)
    test_data.output_gen("./"+name)